package com.xuzz.study.springbootdemo;

import com.xuzz.study.springboot.configure.DemoApplication;
import com.xuzz.study.springboot.configure.EnableDemo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@EnableDemo
@DemoApplication
public class SpringbootDemoApplication {

    public static void main(String[] args) {
    SpringApplication.run(SpringbootDemoApplication.class, args);
    }
/*

    //方式二
    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SpringbootDemoApplication.class);
        app.run(args);
    }
    //方式三
    public static void main(String[] args) {
        new SpringApplicationBuilder()
                .sources(Parent.class)
                .child(SpringbootDemoApplication.class)
                .run(args);
    }*/

}
